#!/bin/bash

#
# ipgrep -- by Dario Berzano <dario.berzano@gmail.com>
#
# Part of the lfscripts suite -- http://lfscripts.googecode.com/
#
# Greps ipv4 addresses from stdin. Multiple matches on a single line are
# correctly handled.
#

perl -ne 'while ( /(([0-9]{1,3}\.){3}[0-9]{1,3})/g ) { print "$1\n" }'
